#define  _CRT_SECURE_NO_WARNINGS  1
int NumberOf1(int n)
{
	int count = 0;
	int i = 32;
	while (i)
	{
		if (1 == (n & 1))
		{
			count++;
		}
		n = n >> 1;
		i--;
	}
	return count;
	// write code here
}